import { ITableDemo } from '@/api/tableDemo/type'
import http from '@/utils/http'

// 表格演示相关接口
export class TableDemoApi {
  // 列表
  static baseList = (params: any) => http.post<ITableDemo.BaseModel[]>('/admin/tableBase/index', params)
  static baseEdit = (params: ITableDemo.BaseModel) => http.post('/admin/tableBase/edit', params)
  static baseDelete = (params: any) => http.post('/admin/tableBase/delete', params)
  static baseChangeStatus = (params: any) => http.post('/admin/tableBase/status', params)
  static baseImport = (params: any) => http.post('/admin/tableBase/import', params)
  static baseExport = (params: any) => http.download<BlobPart>('/admin/tableBase/export', params)
}
